Skip to content

[HZ-5278] Asyncio module soak tests#755

Merged
yuce merged 115 commits into
hazelcast:masterfrom
yuce:asyncio-module-soak-tests
Dec 9, 2025
Merged

[HZ-5278] Asyncio module soak tests#755
yuce merged 115 commits into
hazelcast:masterfrom
yuce:asyncio-module-soak-tests

Conversation

@yuce

@yuce yuce commented Dec 9, 2025

Copy link
Copy Markdown
Contributor
  • Updated the code to get the raw socket in AsyncioReactor._create_connection to be compatible with uvloop.
  • Added soak tests for the asyncio client
  • Updated client/member shell scripts to terminate clients/members on termination.
  • Removed Python 3.7 support declaration (which was accidentally left).

@yuce yuce added this to the 5.6.0 milestone Dec 9, 2025
@codecov-commenter

codecov-commenter commented Dec 9, 2025

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 94.55%. Comparing base (41d65f9) to head (15772fe).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #755      +/-   ##
==========================================
- Coverage   94.57%   94.55%   -0.02%     
==========================================
  Files         393      393              
  Lines       25074    25072       -2     
==========================================
- Hits        23713    23707       -6     
- Misses       1361     1365       +4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@yuce
yuce requested review from emreyigit and ihsandemir December 9, 2025 05:40
@yuce
yuce merged commit d3aae84 into hazelcast:master Dec 9, 2025
11 checks passed
@yuce
yuce deleted the asyncio-module-soak-tests branch December 9, 2025 06:33
Comment thread setup.py
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.7",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how come this was not caught before? Dont we have a test to verify all supported runtimes?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can't test for these.
These are just annotations.

pids+=("$pid")
done

for i in {1..5}; do

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there used to be 10 clients all same type. Now you mıxed asyncio and non-asyncio usage. But this is not an expected usage from users. I would keep 10 clients and have 2 different tests for asynci and asyncore. We need to make sure both clients work independently in their own cluster without a problem. Mixed usage is another use case which is less interest.

@yuce yuce Dec 9, 2025

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Users can use both asyncio and asyncore clients together without problems even in the same process.

In the soak tests, asyncio and asyncore clients run in different processes, so there's even better isolation.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We do not do such mixed tests for other clients which is also possible. If you want to change the soak test in this way, we better evaluate changing it for all clients. Original soak test did not mean to test this scenario.

@yuce yuce changed the title Asyncio module soak tests [HZ-5278] Asyncio module soak tests Dec 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants